
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatQrcodeRequest struct {

	Uid string `json:"uid" form:"uid"`

	Name string `json:"name" form:"name"`

	Image string `json:"image" form:"image"`

	CateId string `json:"cate_id" form:"cate_id"`

	LabelId string `json:"label_id" form:"label_id"`

	Type string `json:"type" form:"type"`

	Content string `json:"content" form:"content"`

	Data string `json:"data" form:"data"`

	Follow string `json:"follow" form:"follow"`

	Scan string `json:"scan" form:"scan"`

	AddTime string `json:"add_time" form:"add_time"`

	ContinueTime string `json:"continue_time" form:"continue_time"`

	EndTime string `json:"end_time" form:"end_time"`

	Status string `json:"status" form:"status"`

	IsDel string `json:"is_del" form:"is_del"`

}

func (r *WechatQrcodeRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatQrcodeRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"name": "required",

		"image": "required",

		"cate_id": "required",

		"label_id": "required",

		"type": "required",

		"content": "required",

		"data": "required",

		"follow": "required",

		"scan": "required",

		"add_time": "required",

		"continue_time": "required",

		"end_time": "required",

		"status": "required",

		"is_del": "required",

	}
}

func (r *WechatQrcodeRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
